<?php
defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * 客户变更记录
 */
class Custlog_mdl extends MY_Model {

    public function __construct() {
        parent::__construct();
        $this->table = 'custlog';
    }

    /**
     * 添加记录
     */
    public function action_add($c_id,$status = 1){

        $data = array(
            'cust_id' => $c_id,
            'action' => $status,
            'user_id' => $_SESSION['user']['id'],
            'update_time' => $_SERVER['REQUEST_TIME']
        );
        $this->create($data);
    }

}

/* End of file Custlog_mdl.php */
/* Location: ./application/models/Custlog_mdl.php */